﻿@model Major
@{
    ViewData["Title"] = "AddMajor";
}

<h1>添加专业</h1>
<form asp-action="AddMajor" asp-controller="Home" method="post" class="m-3">
    <div class="form-group row">
        <label asp-for="@Model.MojorName" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <input asp-for="@Model.MojorName" class="form-control" />
            <span asp-validation-for="@Model.MojorName"></span>
        </div>
    </div>
    <button class="btn btn-primary" type="submit">创建</button>
</form>

